<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>URI - Uniform Resource Identifiers (absolute and relative) - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of URI - MetaCPAN" href="https://metacpan.org/dist/URI/releases.rss" />
        <link rel="canonical" href="URI.html" />
        <meta name="description" content="Uniform Resource Identifiers (absolute and relative)" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/URI" />
<meta name="twitter:title"       content="URI" />
<meta name="twitter:description" content="Uniform Resource Identifiers (absolute and relative)" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="URI.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of URI was released.">
      <span class="relatize">02 Feb 2024 19:05:45 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/URI">URI</a>
  </li>
  <li>
    Module version: 5.26
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/URI/source/lib/URI.pm">Source</a>
    (<a href="https://metacpan.org/dist/URI/source/lib/URI.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/URI/source/lib">Browse</a>
    (<a href="https://metacpan.org/dist/URI/source/lib?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/URI/changes">Changes</a>
    </li>
    <li>
      <a rel="noopener nofollow" class="nopopup" href="https://github.com/libwww-perl/URI">Homepage</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/URI/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/libwww-perl/URI">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://github.com/libwww-perl/URI/issues">Issues</a>
      (31)
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=URI+5.26" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/U/URI.html?oncpan=1&amp;distmat=1&amp;version=5.26&amp;grade=2" style="color: #090">196</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/U/URI.html?oncpan=1&amp;distmat=1&amp;version=5.26&amp;grade=3" style="color: #900">0</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/U/URI.html?oncpan=1&amp;distmat=1&amp;version=5.26&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/OALDERS/URI-5.26">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on URI who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 7
      </div>
    </li>
    <li>
      License: perl_5
    </li>
    <li>
      Perl: v5.8.1
    </li>
    <li class="chat-banner">
      <div><a rel="noopener nofollow" target="_blank" href="https://kiwiirc.com/nextclient/#irc://irc.perl.org/#lwp?nick=mc-guest-?">Chat with us!</a></div>
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/URI/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/URI-5.26.tar.gz">
      Download (<span itemprop="fileSize">120.93KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FOALDERS%2FURI-5.26%2Flib%2FURI.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/URI/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/URI/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:URI">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="URI">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/URI.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="OALDERS/URI-5.26"
>5.26
  (OALDERS on 2024-02-02)</option>
<option
  
  value="OALDERS/URI-5.25"
>5.25
  (OALDERS on 2024-01-27)</option>
<option
  
  value="OALDERS/URI-5.24"
>5.24
  (OALDERS on 2024-01-26)</option>
<option
  
  value="OALDERS/URI-5.23"
>5.23
  (OALDERS on 2024-01-25)</option>
<option
  
  value="OALDERS/URI-5.22"
>5.22
  (OALDERS on 2024-01-25)</option>
<option
  
  value="OALDERS/URI-5.21"
>5.21
  (OALDERS on 2023-08-23)</option>
<option
  
  value="OALDERS/URI-5.20"
>5.20
  (OALDERS on 2023-08-23)</option>
<option
  
  value="SIMBABQUE/URI-5.19"
>5.19
  (SIMBABQUE on 2023-04-30)</option>
<option
  
  value="SIMBABQUE/URI-5.18"
>5.18
  (SIMBABQUE on 2023-04-29)</option>
<option
  
  value="OALDERS/URI-5.17"
>5.17
  (OALDERS on 2022-11-02)</option>
<option
  
  value="OALDERS/URI-5.16"
>5.16
  (OALDERS on 2022-10-12)</option>
<option
  
  value="OALDERS/URI-5.15"
>5.15
  (OALDERS on 2022-10-11)</option>
<option
  
  value="OALDERS/URI-5.14"
>5.14
  (OALDERS on 2022-10-10)</option>
<option
  
  value="OALDERS/URI-5.13"
>5.13
  (OALDERS on 2022-10-06)</option>
<option
  
  value="OALDERS/URI-5.12"
>5.12
  (OALDERS on 2022-07-10)</option>
<option
  
  value="OALDERS/URI-5.10"
>5.10
  (OALDERS on 2021-10-25)</option>
<option
  
  value="OALDERS/URI-5.09"
>5.09
  (OALDERS on 2021-03-03)</option>
<option
  
  value="ETHER/URI-5.08"
>5.08
  (ETHER on 2021-02-28)</option>
<option
  
  value="OALDERS/URI-5.07"
>5.07
  (OALDERS on 2021-01-29)</option>
<option
  
  value="OALDERS/URI-5.06"
>5.06
  (OALDERS on 2021-01-14)</option>
<option
  
  value="OALDERS/URI-5.05"
>5.05
  (OALDERS on 2020-10-21)</option>
<option
  
  value="OALDERS/URI-1.76"
>1.76
  (OALDERS on 2019-01-09)</option>
<option
  
  value="ETHER/URI-1.74"
>1.74
  (ETHER on 2018-04-23)</option>
<option
  
  value="GAAS/URI-1.60"
>1.60
  (GAAS on 2012-03-25)</option>
<option
  
  value="GAAS/URI-1.40"
>1.40
  (GAAS on 2009-08-14)</option>
<optgroup label="BackPAN">'
<option
  
  value="OALDERS/URI-5.11"
>5.11
  (OALDERS on 2022-07-04)</option>
<option
  
  value="OALDERS/URI-1.75"
>1.75
  (OALDERS on 2019-01-08)</option>
<option
  
  value="ETHER/URI-1.73"
>1.73
  (ETHER on 2018-01-09)</option>
<option
  
  value="ETHER/URI-1.72"
>1.72
  (ETHER on 2017-07-26)</option>
<option
  
  value="ETHER/URI-1.71"
>1.71
  (ETHER on 2016-01-08)</option>
<option
  
  value="ETHER/URI-1.70_001"
>1.70_001 DEV
  (ETHER on 2015-12-29)</option>
<option
  
  value="ETHER/URI-1.69"
>1.69
  (ETHER on 2015-07-25)</option>
<option
  
  value="ETHER/URI-1.68"
>1.68
  (ETHER on 2015-06-26)</option>
<option
  
  value="OALDERS/URI-1.67_01"
>1.67_01 DEV
  (OALDERS on 2015-06-24)</option>
<option
  
  value="ETHER/URI-1.67"
>1.67
  (ETHER on 2015-02-24)</option>
<option
  
  value="ETHER/URI-1.66"
>1.66
  (ETHER on 2015-02-24)</option>
<option
  
  value="ETHER/URI-1.65"
>1.65
  (ETHER on 2014-11-05)</option>
<option
  
  value="ETHER/URI-1.64"
>1.64
  (ETHER on 2014-07-13)</option>
<option
  
  value="ETHER/URI-1.63"
>1.63
  (ETHER on 2014-07-13)</option>
<option
  
  value="ETHER/URI-1.62"
>1.62
  (ETHER on 2014-07-12)</option>
<option
  
  value="ETHER/URI-1.61"
>1.61
  (ETHER on 2014-07-01)</option>
<option
  
  value="GAAS/URI-1.59"
>1.59
  (GAAS on 2011-08-15)</option>
<option
  
  value="GAAS/URI-1.58"
>1.58
  (GAAS on 2011-01-22)</option>
<option
  
  value="GAAS/URI-1.57"
>1.57
  (GAAS on 2011-01-22)</option>
<option
  
  value="GAAS/URI-1.56"
>1.56
  (GAAS on 2010-10-06)</option>
<option
  
  value="GAAS/URI-1.55"
>1.55
  (GAAS on 2010-09-01)</option>
<option
  
  value="GAAS/URI-1.54"
>1.54
  (GAAS on 2010-03-31)</option>
<option
  
  value="GAAS/URI-1.53"
>1.53
  (GAAS on 2010-03-14)</option>
<option
  
  value="GAAS/URI-1.52"
>1.52
  (GAAS on 2009-12-30)</option>
<option
  
  value="GAAS/URI-1.51"
>1.51
  (GAAS on 2009-11-23)</option>
<option
  
  value="GAAS/URI-1.50"
>1.50
  (GAAS on 2009-11-21)</option>
<option
  
  value="GAAS/URI-1.39"
>1.39
  (GAAS on 2009-08-13)</option>
<option
  
  value="GAAS/URI-1.38"
>1.38
  (GAAS on 2009-05-28)</option>
<option
  
  value="GAAS/URI-1.37"
>1.37
  (GAAS on 2008-06-16)</option>
<option
  
  value="GAAS/URI-1.36"
>1.36
  (GAAS on 2008-04-02)</option>
<option
  
  value="GAAS/URI-1.35"
>1.35
  (GAAS on 2004-11-05)</option>
<option
  
  value="GAAS/URI-1.34"
>1.34
  (GAAS on 2004-10-05)</option>
<option
  
  value="GAAS/URI-1.33"
>1.33
  (GAAS on 2004-09-19)</option>
<option
  
  value="GAAS/URI-1.32"
>1.32
  (GAAS on 2004-09-07)</option>
<option
  
  value="GAAS/URI-1.31"
>1.31
  (GAAS on 2004-06-08)</option>
<option
  
  value="GAAS/URI-1.30"
>1.30
  (GAAS on 2004-01-14)</option>
<option
  
  value="GAAS/URI-1.29"
>1.29
  (GAAS on 2004-01-02)</option>
<option
  
  value="GAAS/URI-1.28"
>1.28
  (GAAS on 2003-11-30)</option>
<option
  
  value="GAAS/URI-1.27"
>1.27
  (GAAS on 2003-10-06)</option>
<option
  
  value="GAAS/URI-1.26"
>1.26
  (GAAS on 2003-10-03)</option>
<option
  
  value="GAAS/URI-1.25"
>1.25
  (GAAS on 2003-08-18)</option>
<option
  
  value="GAAS/URI-1.24"
>1.24
  (GAAS on 2003-07-24)</option>
<option
  
  value="GAAS/URI-1.23"
>1.23
  (GAAS on 2003-01-02)</option>
<option
  
  value="GAAS/URI-1.22"
>1.22
  (GAAS on 2002-09-03)</option>
<option
  
  value="GAAS/URI-1.21"
>1.21
  (GAAS on 2002-08-04)</option>
<option
  
  value="GAAS/URI-1.20"
>1.20
  (GAAS on 2002-07-19)</option>
<option
  
  value="GAAS/URI-1.19"
>1.19
  (GAAS on 2002-05-09)</option>
<option
  
  value="GAAS/URI-1.18"
>1.18
  (GAAS on 2001-12-30)</option>
<option
  
  value="GAAS/URI-1.17"
>1.17
  (GAAS on 2001-09-14)</option>
<option
  
  value="GAAS/URI-1.16"
>1.16
  (GAAS on 2001-08-27)</option>
<option
  
  value="GAAS/URI-1.15"
>1.15
  (GAAS on 2001-07-19)</option>
<option
  
  value="GAAS/URI-1.14"
>1.14
  (GAAS on 2001-07-18)</option>
<option
  
  value="GAAS/URI-1.12"
>1.12
  (GAAS on 2001-04-23)</option>
<option
  
  value="GAAS/URI-1.11"
>1.11
  (GAAS on 2001-02-27)</option>
<option
  
  value="GAAS/URI-1.10"
>1.10
  (GAAS on 2001-01-11)</option>
<option
  
  value="GAAS/URI-1.09"
>1.09
  (GAAS on 2000-08-16)</option>
<option
  
  value="GAAS/URI-1.08"
>1.08
  (GAAS on 2000-08-02)</option>
<option
  
  value="GAAS/URI-1.07"
>1.07
  (GAAS on 2000-06-13)</option>
<option
  
  value="GAAS/URI-1.06"
>1.06
  (GAAS on 2000-04-09)</option>
<option
  
  value="GAAS/URI-1.05"
>1.05
  (GAAS on 2000-02-14)</option>
<option
  
  value="GAAS/URI-1.04"
>1.04
  (GAAS on 1999-08-02)</option>
<option
  
  value="GAAS/URI-1.03"
>1.03
  (GAAS on 1999-06-24)</option>
<option
  
  value="GAAS/URI-1.02"
>1.02
  (GAAS on 1999-03-26)</option>
<option
  
  value="GAAS/URI-1.01"
>1.01
  (GAAS on 1999-03-20)</option>
<option
  
  value="GAAS/URI-1.00"
>1.00
  (GAAS on 1998-11-19)</option>
<option
  
  value="GAAS/URI-0.90_02"
>0.90_02 DEV
  (GAAS on 1998-10-12)</option>
<option
  
  value="GAAS/URI-0.90_01"
>0.90_01 DEV
  (GAAS on 1998-09-23)</option>
<option
  
  value="GAAS/URI-0.09_02"
>0.09_02 DEV
  (GAAS on 1998-09-22)</option>
<option
  
  value="GAAS/URI-0.09_01"
>0.09_01 DEV
  (GAAS on 1998-09-13)</option>
<option
  
  value="GAAS/URI-0.09"
>0.09
  (GAAS on 1998-09-12)</option>
<option
  
  value="GAAS/URI-0.08"
>0.08
  (GAAS on 1998-09-10)</option>
<option
  
  value="GAAS/URI-0.07"
>0.07
  (GAAS on 1998-09-09)</option>
<option
  
  value="GAAS/URI-0.06"
>0.06
  (GAAS on 1998-09-08)</option>
<option
  
  value="GAAS/URI-0.05"
>0.05
  (GAAS on 1998-09-07)</option>
<option
  
  value="GAAS/URI-0.04"
>0.04
  (GAAS on 1998-09-06)</option>
<option
  
  value="GAAS/URI-0.03"
>0.03
  (GAAS on 1998-09-05)</option>
<option
  
  value="GAAS/URI-0.01"
>0.01
  (GAAS on 1998-04-10)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/OALDERS/URI-5.26/diff/' + encodeURIComponent(this.value) + '/lib/URI.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="OALDERS/URI-5.26"
>5.26
  (OALDERS on 2024-02-02)</option>
<option
  
  value="OALDERS/URI-5.25"
>5.25
  (OALDERS on 2024-01-27)</option>
<option
  
  value="OALDERS/URI-5.24"
>5.24
  (OALDERS on 2024-01-26)</option>
<option
  
  value="OALDERS/URI-5.23"
>5.23
  (OALDERS on 2024-01-25)</option>
<option
  
  value="OALDERS/URI-5.22"
>5.22
  (OALDERS on 2024-01-25)</option>
<option
  
  value="OALDERS/URI-5.21"
>5.21
  (OALDERS on 2023-08-23)</option>
<option
  
  value="OALDERS/URI-5.20"
>5.20
  (OALDERS on 2023-08-23)</option>
<option
  
  value="SIMBABQUE/URI-5.19"
>5.19
  (SIMBABQUE on 2023-04-30)</option>
<option
  
  value="SIMBABQUE/URI-5.18"
>5.18
  (SIMBABQUE on 2023-04-29)</option>
<option
  
  value="OALDERS/URI-5.17"
>5.17
  (OALDERS on 2022-11-02)</option>
<option
  
  value="OALDERS/URI-5.16"
>5.16
  (OALDERS on 2022-10-12)</option>
<option
  
  value="OALDERS/URI-5.15"
>5.15
  (OALDERS on 2022-10-11)</option>
<option
  
  value="OALDERS/URI-5.14"
>5.14
  (OALDERS on 2022-10-10)</option>
<option
  
  value="OALDERS/URI-5.13"
>5.13
  (OALDERS on 2022-10-06)</option>
<option
  
  value="OALDERS/URI-5.12"
>5.12
  (OALDERS on 2022-07-10)</option>
<option
  
  value="OALDERS/URI-5.10"
>5.10
  (OALDERS on 2021-10-25)</option>
<option
  
  value="OALDERS/URI-5.09"
>5.09
  (OALDERS on 2021-03-03)</option>
<option
  
  value="ETHER/URI-5.08"
>5.08
  (ETHER on 2021-02-28)</option>
<option
  
  value="OALDERS/URI-5.07"
>5.07
  (OALDERS on 2021-01-29)</option>
<option
  
  value="OALDERS/URI-5.06"
>5.06
  (OALDERS on 2021-01-14)</option>
<option
  
  value="OALDERS/URI-5.05"
>5.05
  (OALDERS on 2020-10-21)</option>
<option
  
  value="OALDERS/URI-1.76"
>1.76
  (OALDERS on 2019-01-09)</option>
<option
  
  value="ETHER/URI-1.74"
>1.74
  (ETHER on 2018-04-23)</option>
<option
  
  value="GAAS/URI-1.60"
>1.60
  (GAAS on 2012-03-25)</option>
<option
  
  value="GAAS/URI-1.40"
>1.40
  (GAAS on 2009-08-14)</option>
<optgroup label="BackPAN">'
<option
  
  value="OALDERS/URI-5.11"
>5.11
  (OALDERS on 2022-07-04)</option>
<option
  
  value="OALDERS/URI-1.75"
>1.75
  (OALDERS on 2019-01-08)</option>
<option
  
  value="ETHER/URI-1.73"
>1.73
  (ETHER on 2018-01-09)</option>
<option
  
  value="ETHER/URI-1.72"
>1.72
  (ETHER on 2017-07-26)</option>
<option
  
  value="ETHER/URI-1.71"
>1.71
  (ETHER on 2016-01-08)</option>
<option
  
  value="ETHER/URI-1.70_001"
>1.70_001 DEV
  (ETHER on 2015-12-29)</option>
<option
  
  value="ETHER/URI-1.69"
>1.69
  (ETHER on 2015-07-25)</option>
<option
  
  value="ETHER/URI-1.68"
>1.68
  (ETHER on 2015-06-26)</option>
<option
  
  value="OALDERS/URI-1.67_01"
>1.67_01 DEV
  (OALDERS on 2015-06-24)</option>
<option
  
  value="ETHER/URI-1.67"
>1.67
  (ETHER on 2015-02-24)</option>
<option
  
  value="ETHER/URI-1.66"
>1.66
  (ETHER on 2015-02-24)</option>
<option
  
  value="ETHER/URI-1.65"
>1.65
  (ETHER on 2014-11-05)</option>
<option
  
  value="ETHER/URI-1.64"
>1.64
  (ETHER on 2014-07-13)</option>
<option
  
  value="ETHER/URI-1.63"
>1.63
  (ETHER on 2014-07-13)</option>
<option
  
  value="ETHER/URI-1.62"
>1.62
  (ETHER on 2014-07-12)</option>
<option
  
  value="ETHER/URI-1.61"
>1.61
  (ETHER on 2014-07-01)</option>
<option
  
  value="GAAS/URI-1.59"
>1.59
  (GAAS on 2011-08-15)</option>
<option
  
  value="GAAS/URI-1.58"
>1.58
  (GAAS on 2011-01-22)</option>
<option
  
  value="GAAS/URI-1.57"
>1.57
  (GAAS on 2011-01-22)</option>
<option
  
  value="GAAS/URI-1.56"
>1.56
  (GAAS on 2010-10-06)</option>
<option
  
  value="GAAS/URI-1.55"
>1.55
  (GAAS on 2010-09-01)</option>
<option
  
  value="GAAS/URI-1.54"
>1.54
  (GAAS on 2010-03-31)</option>
<option
  
  value="GAAS/URI-1.53"
>1.53
  (GAAS on 2010-03-14)</option>
<option
  
  value="GAAS/URI-1.52"
>1.52
  (GAAS on 2009-12-30)</option>
<option
  
  value="GAAS/URI-1.51"
>1.51
  (GAAS on 2009-11-23)</option>
<option
  
  value="GAAS/URI-1.50"
>1.50
  (GAAS on 2009-11-21)</option>
<option
  
  value="GAAS/URI-1.39"
>1.39
  (GAAS on 2009-08-13)</option>
<option
  
  value="GAAS/URI-1.38"
>1.38
  (GAAS on 2009-05-28)</option>
<option
  
  value="GAAS/URI-1.37"
>1.37
  (GAAS on 2008-06-16)</option>
<option
  
  value="GAAS/URI-1.36"
>1.36
  (GAAS on 2008-04-02)</option>
<option
  
  value="GAAS/URI-1.35"
>1.35
  (GAAS on 2004-11-05)</option>
<option
  
  value="GAAS/URI-1.34"
>1.34
  (GAAS on 2004-10-05)</option>
<option
  
  value="GAAS/URI-1.33"
>1.33
  (GAAS on 2004-09-19)</option>
<option
  
  value="GAAS/URI-1.32"
>1.32
  (GAAS on 2004-09-07)</option>
<option
  
  value="GAAS/URI-1.31"
>1.31
  (GAAS on 2004-06-08)</option>
<option
  
  value="GAAS/URI-1.30"
>1.30
  (GAAS on 2004-01-14)</option>
<option
  
  value="GAAS/URI-1.29"
>1.29
  (GAAS on 2004-01-02)</option>
<option
  
  value="GAAS/URI-1.28"
>1.28
  (GAAS on 2003-11-30)</option>
<option
  
  value="GAAS/URI-1.27"
>1.27
  (GAAS on 2003-10-06)</option>
<option
  
  value="GAAS/URI-1.26"
>1.26
  (GAAS on 2003-10-03)</option>
<option
  
  value="GAAS/URI-1.25"
>1.25
  (GAAS on 2003-08-18)</option>
<option
  
  value="GAAS/URI-1.24"
>1.24
  (GAAS on 2003-07-24)</option>
<option
  
  value="GAAS/URI-1.23"
>1.23
  (GAAS on 2003-01-02)</option>
<option
  
  value="GAAS/URI-1.22"
>1.22
  (GAAS on 2002-09-03)</option>
<option
  
  value="GAAS/URI-1.21"
>1.21
  (GAAS on 2002-08-04)</option>
<option
  
  value="GAAS/URI-1.20"
>1.20
  (GAAS on 2002-07-19)</option>
<option
  
  value="GAAS/URI-1.19"
>1.19
  (GAAS on 2002-05-09)</option>
<option
  
  value="GAAS/URI-1.18"
>1.18
  (GAAS on 2001-12-30)</option>
<option
  
  value="GAAS/URI-1.17"
>1.17
  (GAAS on 2001-09-14)</option>
<option
  
  value="GAAS/URI-1.16"
>1.16
  (GAAS on 2001-08-27)</option>
<option
  
  value="GAAS/URI-1.15"
>1.15
  (GAAS on 2001-07-19)</option>
<option
  
  value="GAAS/URI-1.14"
>1.14
  (GAAS on 2001-07-18)</option>
<option
  
  value="GAAS/URI-1.12"
>1.12
  (GAAS on 2001-04-23)</option>
<option
  
  value="GAAS/URI-1.11"
>1.11
  (GAAS on 2001-02-27)</option>
<option
  
  value="GAAS/URI-1.10"
>1.10
  (GAAS on 2001-01-11)</option>
<option
  
  value="GAAS/URI-1.09"
>1.09
  (GAAS on 2000-08-16)</option>
<option
  
  value="GAAS/URI-1.08"
>1.08
  (GAAS on 2000-08-02)</option>
<option
  
  value="GAAS/URI-1.07"
>1.07
  (GAAS on 2000-06-13)</option>
<option
  
  value="GAAS/URI-1.06"
>1.06
  (GAAS on 2000-04-09)</option>
<option
  
  value="GAAS/URI-1.05"
>1.05
  (GAAS on 2000-02-14)</option>
<option
  
  value="GAAS/URI-1.04"
>1.04
  (GAAS on 1999-08-02)</option>
<option
  
  value="GAAS/URI-1.03"
>1.03
  (GAAS on 1999-06-24)</option>
<option
  
  value="GAAS/URI-1.02"
>1.02
  (GAAS on 1999-03-26)</option>
<option
  
  value="GAAS/URI-1.01"
>1.01
  (GAAS on 1999-03-20)</option>
<option
  
  value="GAAS/URI-1.00"
>1.00
  (GAAS on 1998-11-19)</option>
<option
  
  value="GAAS/URI-0.90_02"
>0.90_02 DEV
  (GAAS on 1998-10-12)</option>
<option
  
  value="GAAS/URI-0.90_01"
>0.90_01 DEV
  (GAAS on 1998-09-23)</option>
<option
  
  value="GAAS/URI-0.09_02"
>0.09_02 DEV
  (GAAS on 1998-09-22)</option>
<option
  
  value="GAAS/URI-0.09_01"
>0.09_01 DEV
  (GAAS on 1998-09-13)</option>
<option
  
  value="GAAS/URI-0.09"
>0.09
  (GAAS on 1998-09-12)</option>
<option
  
  value="GAAS/URI-0.08"
>0.08
  (GAAS on 1998-09-10)</option>
<option
  
  value="GAAS/URI-0.07"
>0.07
  (GAAS on 1998-09-09)</option>
<option
  
  value="GAAS/URI-0.06"
>0.06
  (GAAS on 1998-09-08)</option>
<option
  
  value="GAAS/URI-0.05"
>0.05
  (GAAS on 1998-09-07)</option>
<option
  
  value="GAAS/URI-0.04"
>0.04
  (GAAS on 1998-09-06)</option>
<option
  
  value="GAAS/URI-0.03"
>0.03
  (GAAS on 1998-09-05)</option>
<option
  
  value="GAAS/URI-0.01"
>0.01
  (GAAS on 1998-04-10)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="https://metacpan.org/pod/Carp" title="Carp" class="ellipsis">Carp</a></li>
  <li><a href="https://metacpan.org/pod/Cwd" title="Cwd" class="ellipsis">Cwd</a></li>
  <li><a href="https://metacpan.org/pod/Data::Dumper" title="Data::Dumper" class="ellipsis">Data::Dumper</a></li>
  <li><a href="https://metacpan.org/pod/Encode" title="Encode" class="ellipsis">Encode</a></li>
  <li><a href="https://metacpan.org/pod/Exporter" title="Exporter" class="ellipsis">Exporter</a></li>
  <li><a href="https://metacpan.org/pod/MIME::Base64" title="MIME::Base64" class="ellipsis">MIME::Base64</a></li>
  <li><a href="https://metacpan.org/pod/Net::Domain" title="Net::Domain" class="ellipsis">Net::Domain</a></li>
  <li><a href="https://metacpan.org/pod/Scalar::Util" title="Scalar::Util" class="ellipsis">Scalar::Util</a></li>
  <li><a href="https://metacpan.org/pod/constant" title="constant" class="ellipsis">constant</a></li>
  <li><a href="https://metacpan.org/pod/integer" title="integer" class="ellipsis">integer</a></li>
  <li><a href="https://metacpan.org/pod/overload" title="overload" class="ellipsis">overload</a></li>
  <li><a href="https://metacpan.org/pod/parent" title="parent" class="ellipsis">parent</a></li>
  <li><a href="https://metacpan.org/pod/strict" title="strict" class="ellipsis">strict</a></li>
  <li><a href="https://metacpan.org/pod/utf8" title="utf8" class="ellipsis">utf8</a></li>
  <li><a href="https://metacpan.org/pod/warnings" title="warnings" class="ellipsis">warnings</a></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/URI/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=URI">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=URI">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/OALDERS/URI-5.26/view/lib/URI.pm">This version</a>
    </li>
    <li>
      <a href="URI.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/HUBAN"><img src="https://www.gravatar.com/avatar/15226a88a183f57fb228aae44dc5c16c?d=identicon&amp;s=20" title="HUBAN" alt="HUBAN"></a>
<a class="display-all" href="https://metacpan.org/author/PAVELSR"><img src="https://www.gravatar.com/avatar/bdd3233525e2a6ca61bbc05752111c15?d=identicon&amp;s=20" title="PAVELSR" alt="PAVELSR"></a>
<a class="display-all" href="https://metacpan.org/author/ESABOL"><img src="https://www.gravatar.com/avatar/539e6f9968426ec02d3370d7654849e2?d=identicon&amp;s=20" title="ESABOL" alt="ESABOL"></a>
<a class="display-all" href="https://metacpan.org/author/BKB"><img src="https://www.gravatar.com/avatar/191945c6c283d81db701008b2d89b68c?d=identicon&amp;s=20" title="BKB" alt="BKB"></a>
<a class="display-all" href="https://metacpan.org/author/WREIS"><img src="https://www.gravatar.com/avatar/0b14bc3a0a18e795beebcffef045bbea?d=identicon&amp;s=20" title="WREIS" alt="WREIS"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/URI/plussers">70 PAUSE users</a>
</div>
<div>
    43 non-PAUSE users
</div>
</div>
    </li>
    <li>
<div id="metacpan_contributors">
  <div>
    <button class="btn-link"
      onclick="$(this).hide(); $('#metacpan_contributors ul').slideDown(); return false;"
    >and 43 contributors</button>
  </div>
  <ul style="display: none">
    <li class="contributor"
      data-contrib-email="gisle@activestate.com gisle@aas.no"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Gisle Aas
    </li>
    <li class="contributor"
      data-cpan-author="ETHER"
      data-contrib-email="ether@cpan.org"
    >
      <a href="https://metacpan.org/author/ETHER" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/bdc5cd06679e732e262f6c1b450a0237?d=identicon&amp;s=20" />
      Karen Etheridge
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="olaf@wundersolutions.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Olaf Alders
    </li>
    <li class="contributor"
      data-cpan-author="CAPOEIRAB"
      data-contrib-email="capoeirab@cpan.org"
    >
      <a href="https://metacpan.org/author/CAPOEIRAB" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/912bfa255ef8161a494932af0cad48c5?d=identicon&amp;s=20" />
      Chase Whitener
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="SIMBABQUE"
      data-contrib-email="simbabque@cpan.org"
    >
      <a href="https://metacpan.org/author/SIMBABQUE" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/bcf66f65dcd36296129acbd96bfb0cb9?d=identicon&amp;s=20" />
      Julien Fiegehenn
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="SCOP"
      data-contrib-email="ville.skytta@iki.fi"
    >
      <a href="https://metacpan.org/author/SCOP" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/4623589f12ed201b060c2075fd9c0920?d=identicon&amp;s=20" />
      Ville Skyttä
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="MARKSTOS"
      data-contrib-email="mark@stosberg.com"
    >
      <a href="https://metacpan.org/author/MARKSTOS" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/795623cd5c352aafe2d8f3d3bdd712ce?d=identicon&amp;s=20" />
      Mark Stosberg
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="DDICK"
      data-contrib-email="ddick@cpan.org"
    >
      <a href="https://metacpan.org/author/DDICK" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/f9a2543232b79d85aae04fa58811efe5?d=identicon&amp;s=20" />
      David Dick
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="HAARG"
      data-contrib-email="haarg@haarg.org"
    >
      <a href="https://metacpan.org/author/HAARG" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/5037faf9ba40cf736778820fe83fc2ae?d=identicon&amp;s=20" />
      Graham Knop
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="schwern@pobox.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Michael G. Schwern
    </li>
    <li class="contributor"
      data-cpan-author="SKAJI"
      data-contrib-email="skaji@cpan.org"
    >
      <a href="https://metacpan.org/author/SKAJI" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/e4967f90a08dadff9cc185b863cd99a7?d=identicon&amp;s=20" />
      Shoichi Kaji
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="happy.barney@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Branislav Zahradník
    </li>
    <li class="contributor"
      data-contrib-email="49699333+dependabot[bot]@users.noreply.github.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      dependabot[bot]
    </li>
    <li class="contributor"
      data-cpan-author="PERLBOTIX"
      data-contrib-email="perlbotix@cpan.org"
    >
      <a href="https://metacpan.org/author/PERLBOTIX" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/e999b41c5d6f0c96612fd89b97feeb12?d=identicon&amp;s=20" />
      Perlbotics
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="RAZ"
      data-contrib-email="jraspass@gmail.com"
    >
      <a href="https://metacpan.org/author/RAZ" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/b9af2a54454e8f38c169be0c236670d6?d=identicon&amp;s=20" />
      James Raspass
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="MSCHAE"
      data-contrib-email="mschae@cpan.org"
    >
      <a href="https://metacpan.org/author/MSCHAE" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/83dd3b56f70d0c545dd5c8e8f5a2c45c?d=identicon&amp;s=20" />
      Matthew Chae
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="SREZIC"
      data-contrib-email="slaven@rezic.de"
    >
      <a href="https://metacpan.org/author/SREZIC" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/5fa5a4e5ffdf883a1fcb1840c915d485?d=identicon&amp;s=20" />
      Slaven Rezic
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="adam@adamherzog.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Adam Herzog
    </li>
    <li class="contributor"
      data-contrib-email="kapranoff@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Alex Kapranoff
    </li>
    <li class="contributor"
      data-contrib-email="Perl@ResonatorSoft.org"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Brendan Byrd
    </li>
    <li class="contributor"
      data-contrib-email="brian.d.foy@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      brian d foy
    </li>
    <li class="contributor"
      data-contrib-email="davewood@gmx.at"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      David Schmidt
    </li>
    <li class="contributor"
      data-contrib-email="dorian.taylor.lists@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Dorian Taylor
    </li>
    <li class="contributor"
      data-contrib-email="gerard@tty.nl"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      gerard
    </li>
    <li class="contributor"
      data-cpan-author="DAKKAR"
      data-contrib-email="gianni.ceccarelli@broadbean.com"
    >
      <a href="https://metacpan.org/author/DAKKAR" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/5d949b503c35e74c26ef8ecf649b886b?d=identicon&amp;s=20" />
      Gianni Ceccarelli
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="HAKONH"
      data-contrib-email="hakon.hagland@gmail.com"
    >
      <a href="https://metacpan.org/author/HAKONH" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/52ef20852e93826552ce3a6f4810edf1?d=identicon&amp;s=20" />
      Håkon Hægland
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="jack@deguest.jp"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Jacques Deguest
    </li>
    <li class="contributor"
      data-contrib-email="jand@activestate.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Jan Dubois
    </li>
    <li class="contributor"
      data-contrib-email="joenio@colivre.coop.br"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Joenio Costa
    </li>
    <li class="contributor"
      data-contrib-email="brainbuz@brainbuz.org"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      John Karr
    </li>
    <li class="contributor"
      data-contrib-email="john@rimmkaufman.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      John Miller
    </li>
    <li class="contributor"
      data-contrib-email="symkat@symkat.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Kaitlyn Parkhurst
    </li>
    <li class="contributor"
      data-cpan-author="ISHIGAKI"
      data-contrib-email="ishigaki@cpan.org"
    >
      <a href="https://metacpan.org/author/ISHIGAKI" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/a1035a2db5b72227a14e84d65117b75b?d=identicon&amp;s=20" />
      Kenichi Ishigaki
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="kentfredric@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Kent Fredric
    </li>
    <li class="contributor"
      data-cpan-author="HIRATARA"
      data-contrib-email="hiratara@cpan.org"
    >
      <a href="https://metacpan.org/author/HIRATARA" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/e1c3df1bb4cb55926cbf2dd9e9f3b9b8?d=identicon&amp;s=20" />
      Masahiro Honma
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="matthewlawrence@venda.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Matt Lawrence
    </li>
    <li class="contributor"
      data-cpan-author="RIBASUSHI"
      data-contrib-email="ribasushi@cpan.org"
    >
      <a href="https://metacpan.org/author/RIBASUSHI" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/6a096fdb29481fa7326735fada56c5cf?d=identicon&amp;s=20" />
      Peter Rabbitson
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="DEXTER"
      data-contrib-email="piotr.roszatycki@gmail.com"
    >
      <a href="https://metacpan.org/author/DEXTER" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/c25e440701c836655e68df74d87e7052?d=identicon&amp;s=20" />
      Piotr Roszatycki
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="ryker@ryker.org"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Ryan Kereliuk
    </li>
    <li class="contributor"
      data-contrib-email="carnil@launchpad.net"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Salvatore Bonaccorso
    </li>
    <li class="contributor"
      data-cpan-author="SEWI"
      data-contrib-email="sewi@cpan.org"
    >
      <a href="https://metacpan.org/author/SEWI" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d9cc76df188eca49c05eeeaad3c4557c?d=identicon&amp;s=20" />
      Sebastian Willing
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="MIYAGAWA"
      data-contrib-email="miyagawa@bulknews.net"
    >
      <a href="https://metacpan.org/author/MIYAGAWA" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/2edd59ce5f91bec4b962bfce0a805211?d=identicon&amp;s=20" />
      Tatsuhiko Miyagawa
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="OPI"
      data-contrib-email="torsten.foertsch@gmx.net"
    >
      <a href="https://metacpan.org/author/OPI" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/a8bc800e09708d2653b98cf4b9d2c585?d=identicon&amp;s=20" />
      Torsten Förtsch
      </a>
    </li>
  </ul>
</div>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/OALDERS" class="author-name">Olaf Alders 🐫</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/URI.pm&#39;" class="">
<option
  selected
  value="OALDERS/URI-5.26"
>5.26
  (OALDERS on 2024-02-02)</option>
<option
  
  value="OALDERS/URI-5.25"
>5.25
  (OALDERS on 2024-01-27)</option>
<option
  
  value="OALDERS/URI-5.24"
>5.24
  (OALDERS on 2024-01-26)</option>
<option
  
  value="OALDERS/URI-5.23"
>5.23
  (OALDERS on 2024-01-25)</option>
<option
  
  value="OALDERS/URI-5.22"
>5.22
  (OALDERS on 2024-01-25)</option>
<option
  
  value="OALDERS/URI-5.21"
>5.21
  (OALDERS on 2023-08-23)</option>
<option
  
  value="OALDERS/URI-5.20"
>5.20
  (OALDERS on 2023-08-23)</option>
<option
  
  value="SIMBABQUE/URI-5.19"
>5.19
  (SIMBABQUE on 2023-04-30)</option>
<option
  
  value="SIMBABQUE/URI-5.18"
>5.18
  (SIMBABQUE on 2023-04-29)</option>
<option
  
  value="OALDERS/URI-5.17"
>5.17
  (OALDERS on 2022-11-02)</option>
<option
  
  value="OALDERS/URI-5.16"
>5.16
  (OALDERS on 2022-10-12)</option>
<option
  
  value="OALDERS/URI-5.15"
>5.15
  (OALDERS on 2022-10-11)</option>
<option
  
  value="OALDERS/URI-5.14"
>5.14
  (OALDERS on 2022-10-10)</option>
<option
  
  value="OALDERS/URI-5.13"
>5.13
  (OALDERS on 2022-10-06)</option>
<option
  
  value="OALDERS/URI-5.12"
>5.12
  (OALDERS on 2022-07-10)</option>
<option
  
  value="OALDERS/URI-5.10"
>5.10
  (OALDERS on 2021-10-25)</option>
<option
  
  value="OALDERS/URI-5.09"
>5.09
  (OALDERS on 2021-03-03)</option>
<option
  
  value="ETHER/URI-5.08"
>5.08
  (ETHER on 2021-02-28)</option>
<option
  
  value="OALDERS/URI-5.07"
>5.07
  (OALDERS on 2021-01-29)</option>
<option
  
  value="OALDERS/URI-5.06"
>5.06
  (OALDERS on 2021-01-14)</option>
<option
  
  value="OALDERS/URI-5.05"
>5.05
  (OALDERS on 2020-10-21)</option>
<option
  
  value="OALDERS/URI-1.76"
>1.76
  (OALDERS on 2019-01-09)</option>
<option
  
  value="ETHER/URI-1.74"
>1.74
  (ETHER on 2018-04-23)</option>
<option
  
  value="GAAS/URI-1.60"
>1.60
  (GAAS on 2012-03-25)</option>
<option
  
  value="GAAS/URI-1.40"
>1.40
  (GAAS on 2009-08-14)</option>
<optgroup label="BackPAN">'
<option
  
  value="OALDERS/URI-5.11"
>5.11
  (OALDERS on 2022-07-04)</option>
<option
  
  value="OALDERS/URI-1.75"
>1.75
  (OALDERS on 2019-01-08)</option>
<option
  
  value="ETHER/URI-1.73"
>1.73
  (ETHER on 2018-01-09)</option>
<option
  
  value="ETHER/URI-1.72"
>1.72
  (ETHER on 2017-07-26)</option>
<option
  
  value="ETHER/URI-1.71"
>1.71
  (ETHER on 2016-01-08)</option>
<option
  
  value="ETHER/URI-1.70_001"
>1.70_001 DEV
  (ETHER on 2015-12-29)</option>
<option
  
  value="ETHER/URI-1.69"
>1.69
  (ETHER on 2015-07-25)</option>
<option
  
  value="ETHER/URI-1.68"
>1.68
  (ETHER on 2015-06-26)</option>
<option
  
  value="OALDERS/URI-1.67_01"
>1.67_01 DEV
  (OALDERS on 2015-06-24)</option>
<option
  
  value="ETHER/URI-1.67"
>1.67
  (ETHER on 2015-02-24)</option>
<option
  
  value="ETHER/URI-1.66"
>1.66
  (ETHER on 2015-02-24)</option>
<option
  
  value="ETHER/URI-1.65"
>1.65
  (ETHER on 2014-11-05)</option>
<option
  
  value="ETHER/URI-1.64"
>1.64
  (ETHER on 2014-07-13)</option>
<option
  
  value="ETHER/URI-1.63"
>1.63
  (ETHER on 2014-07-13)</option>
<option
  
  value="ETHER/URI-1.62"
>1.62
  (ETHER on 2014-07-12)</option>
<option
  
  value="ETHER/URI-1.61"
>1.61
  (ETHER on 2014-07-01)</option>
<option
  
  value="GAAS/URI-1.59"
>1.59
  (GAAS on 2011-08-15)</option>
<option
  
  value="GAAS/URI-1.58"
>1.58
  (GAAS on 2011-01-22)</option>
<option
  
  value="GAAS/URI-1.57"
>1.57
  (GAAS on 2011-01-22)</option>
<option
  
  value="GAAS/URI-1.56"
>1.56
  (GAAS on 2010-10-06)</option>
<option
  
  value="GAAS/URI-1.55"
>1.55
  (GAAS on 2010-09-01)</option>
<option
  
  value="GAAS/URI-1.54"
>1.54
  (GAAS on 2010-03-31)</option>
<option
  
  value="GAAS/URI-1.53"
>1.53
  (GAAS on 2010-03-14)</option>
<option
  
  value="GAAS/URI-1.52"
>1.52
  (GAAS on 2009-12-30)</option>
<option
  
  value="GAAS/URI-1.51"
>1.51
  (GAAS on 2009-11-23)</option>
<option
  
  value="GAAS/URI-1.50"
>1.50
  (GAAS on 2009-11-21)</option>
<option
  
  value="GAAS/URI-1.39"
>1.39
  (GAAS on 2009-08-13)</option>
<option
  
  value="GAAS/URI-1.38"
>1.38
  (GAAS on 2009-05-28)</option>
<option
  
  value="GAAS/URI-1.37"
>1.37
  (GAAS on 2008-06-16)</option>
<option
  
  value="GAAS/URI-1.36"
>1.36
  (GAAS on 2008-04-02)</option>
<option
  
  value="GAAS/URI-1.35"
>1.35
  (GAAS on 2004-11-05)</option>
<option
  
  value="GAAS/URI-1.34"
>1.34
  (GAAS on 2004-10-05)</option>
<option
  
  value="GAAS/URI-1.33"
>1.33
  (GAAS on 2004-09-19)</option>
<option
  
  value="GAAS/URI-1.32"
>1.32
  (GAAS on 2004-09-07)</option>
<option
  
  value="GAAS/URI-1.31"
>1.31
  (GAAS on 2004-06-08)</option>
<option
  
  value="GAAS/URI-1.30"
>1.30
  (GAAS on 2004-01-14)</option>
<option
  
  value="GAAS/URI-1.29"
>1.29
  (GAAS on 2004-01-02)</option>
<option
  
  value="GAAS/URI-1.28"
>1.28
  (GAAS on 2003-11-30)</option>
<option
  
  value="GAAS/URI-1.27"
>1.27
  (GAAS on 2003-10-06)</option>
<option
  
  value="GAAS/URI-1.26"
>1.26
  (GAAS on 2003-10-03)</option>
<option
  
  value="GAAS/URI-1.25"
>1.25
  (GAAS on 2003-08-18)</option>
<option
  
  value="GAAS/URI-1.24"
>1.24
  (GAAS on 2003-07-24)</option>
<option
  
  value="GAAS/URI-1.23"
>1.23
  (GAAS on 2003-01-02)</option>
<option
  
  value="GAAS/URI-1.22"
>1.22
  (GAAS on 2002-09-03)</option>
<option
  
  value="GAAS/URI-1.21"
>1.21
  (GAAS on 2002-08-04)</option>
<option
  
  value="GAAS/URI-1.20"
>1.20
  (GAAS on 2002-07-19)</option>
<option
  
  value="GAAS/URI-1.19"
>1.19
  (GAAS on 2002-05-09)</option>
<option
  
  value="GAAS/URI-1.18"
>1.18
  (GAAS on 2001-12-30)</option>
<option
  
  value="GAAS/URI-1.17"
>1.17
  (GAAS on 2001-09-14)</option>
<option
  
  value="GAAS/URI-1.16"
>1.16
  (GAAS on 2001-08-27)</option>
<option
  
  value="GAAS/URI-1.15"
>1.15
  (GAAS on 2001-07-19)</option>
<option
  
  value="GAAS/URI-1.14"
>1.14
  (GAAS on 2001-07-18)</option>
<option
  
  value="GAAS/URI-1.12"
>1.12
  (GAAS on 2001-04-23)</option>
<option
  
  value="GAAS/URI-1.11"
>1.11
  (GAAS on 2001-02-27)</option>
<option
  
  value="GAAS/URI-1.10"
>1.10
  (GAAS on 2001-01-11)</option>
<option
  
  value="GAAS/URI-1.09"
>1.09
  (GAAS on 2000-08-16)</option>
<option
  
  value="GAAS/URI-1.08"
>1.08
  (GAAS on 2000-08-02)</option>
<option
  
  value="GAAS/URI-1.07"
>1.07
  (GAAS on 2000-06-13)</option>
<option
  
  value="GAAS/URI-1.06"
>1.06
  (GAAS on 2000-04-09)</option>
<option
  
  value="GAAS/URI-1.05"
>1.05
  (GAAS on 2000-02-14)</option>
<option
  
  value="GAAS/URI-1.04"
>1.04
  (GAAS on 1999-08-02)</option>
<option
  
  value="GAAS/URI-1.03"
>1.03
  (GAAS on 1999-06-24)</option>
<option
  
  value="GAAS/URI-1.02"
>1.02
  (GAAS on 1999-03-26)</option>
<option
  
  value="GAAS/URI-1.01"
>1.01
  (GAAS on 1999-03-20)</option>
<option
  
  value="GAAS/URI-1.00"
>1.00
  (GAAS on 1998-11-19)</option>
<option
  
  value="GAAS/URI-0.90_02"
>0.90_02 DEV
  (GAAS on 1998-10-12)</option>
<option
  
  value="GAAS/URI-0.90_01"
>0.90_01 DEV
  (GAAS on 1998-09-23)</option>
<option
  
  value="GAAS/URI-0.09_02"
>0.09_02 DEV
  (GAAS on 1998-09-22)</option>
<option
  
  value="GAAS/URI-0.09_01"
>0.09_01 DEV
  (GAAS on 1998-09-13)</option>
<option
  
  value="GAAS/URI-0.09"
>0.09
  (GAAS on 1998-09-12)</option>
<option
  
  value="GAAS/URI-0.08"
>0.08
  (GAAS on 1998-09-10)</option>
<option
  
  value="GAAS/URI-0.07"
>0.07
  (GAAS on 1998-09-09)</option>
<option
  
  value="GAAS/URI-0.06"
>0.06
  (GAAS on 1998-09-08)</option>
<option
  
  value="GAAS/URI-0.05"
>0.05
  (GAAS on 1998-09-07)</option>
<option
  
  value="GAAS/URI-0.04"
>0.04
  (GAAS on 1998-09-06)</option>
<option
  
  value="GAAS/URI-0.03"
>0.03
  (GAAS on 1998-09-05)</option>
<option
  
  value="GAAS/URI-0.01"
>0.01
  (GAAS on 1998-04-10)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/URI">URI-5.26</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage five &#10;
          • 1893 direct dependents &#10;          • 10024 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="15"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="20"  y="0" width="4" height="15" fill="#7ea3f2" />
    </g>
  </svg>

</span>
<div id="URI-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="URI-5.26">
    <input type="hidden" name="author" value="OALDERS">
    <input type="hidden" name="distribution" value="URI">
    <button type="submit" class="favorite highlight"><span>113</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="URI.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>113</span> ++</a>
</div>
   / <span>URI</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="URI.html#NAME">NAME</a></li>
  <li><a href="URI.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="URI.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="URI.html#CONSTRUCTORS">CONSTRUCTORS</a></li>
  <li><a href="URI.html#COMMON-METHODS">COMMON METHODS</a></li>
  <li><a href="URI.html#GENERIC-METHODS">GENERIC METHODS</a></li>
  <li><a href="URI.html#SERVER-METHODS">SERVER METHODS</a></li>
  <li><a href="URI.html#SCHEME-SPECIFIC-SUPPORT">SCHEME-SPECIFIC SUPPORT</a></li>
  <li><a href="URI.html#CONFIGURATION-VARIABLES">CONFIGURATION VARIABLES</a></li>
  <li><a href="URI.html#ENVIRONMENT-VARIABLES">ENVIRONMENT VARIABLES</a></li>
  <li><a href="URI.html#BUGS">BUGS</a></li>
  <li><a href="URI.html#PARSING-URIs-WITH-REGEXP">PARSING URIs WITH REGEXP</a></li>
  <li><a href="URI.html#SEE-ALSO">SEE ALSO</a></li>
  <li><a href="URI.html#COPYRIGHT">COPYRIGHT</a></li>
  <li><a href="URI.html#AUTHORS-/-ACKNOWLEDGMENTS">AUTHORS / ACKNOWLEDGMENTS</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>URI - Uniform Resource Identifiers (absolute and relative)</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<pre><code> use URI ();

 $u1 = URI-&gt;new(&quot;http://www.example.com&quot;);
 $u2 = URI-&gt;new(&quot;foo&quot;, &quot;http&quot;);
 $u3 = $u2-&gt;abs($u1);
 $u4 = $u3-&gt;clone;
 $u5 = URI-&gt;new(&quot;HTTP://WWW.example.com:80&quot;)-&gt;canonical;

 $str = $u-&gt;as_string;
 $str = &quot;$u&quot;;

 $scheme = $u-&gt;scheme;
 $opaque = $u-&gt;opaque;
 $path   = $u-&gt;path;
 $frag   = $u-&gt;fragment;

 $u-&gt;scheme(&quot;ftp&quot;);
 $u-&gt;host(&quot;ftp.example.com&quot;);
 $u-&gt;path(&quot;cpan/&quot;);</code></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p>This module implements the <code>URI</code> class. Objects of this class represent &quot;Uniform Resource Identifier references&quot; as specified in RFC 2396 (and updated by RFC 2732).</p>

<p>A Uniform Resource Identifier is a compact string of characters that identifies an abstract or physical resource. A Uniform Resource Identifier can be further classified as either a Uniform Resource Locator (URL) or a Uniform Resource Name (URN). The distinction between URL and URN does not matter to the <code>URI</code> class interface. A &quot;URI-reference&quot; is a URI that may have additional information attached in the form of a fragment identifier.</p>

<p>An absolute URI reference consists of three parts: a <i>scheme</i>, a <i>scheme-specific part</i> and a <i>fragment</i> identifier. A subset of URI references share a common syntax for hierarchical namespaces. For these, the scheme-specific part is further broken down into <i>authority</i>, <i>path</i> and <i>query</i> components. These URIs can also take the form of relative URI references, where the scheme (and usually also the authority) component is missing, but implied by the context of the URI reference. The three forms of URI reference syntax are summarized as follows:</p>

<pre><code>  &lt;scheme&gt;:&lt;scheme-specific-part&gt;#&lt;fragment&gt;
  &lt;scheme&gt;://&lt;authority&gt;&lt;path&gt;?&lt;query&gt;#&lt;fragment&gt;
  &lt;path&gt;?&lt;query&gt;#&lt;fragment&gt;</code></pre>

<p>The components into which a URI reference can be divided depend on the <i>scheme</i>. The <code>URI</code> class provides methods to get and set the individual components. The methods available for a specific <code>URI</code> object depend on the scheme.</p>

<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>

<p>The following methods construct new <code>URI</code> objects:</p>

<dl>

<dt id="$uri-=-URI-&gt;new(-$str-)"><a id="uri---URI--new---str"></a>$uri = URI-&gt;new( $str )</dt>
<dd>

</dd>
<dt id="$uri-=-URI-&gt;new(-$str,-$scheme-)"><a id="uri---URI--new---str---scheme"></a>$uri = URI-&gt;new( $str, $scheme )</dt>
<dd>

<p>Constructs a new URI object. The string representation of a URI is given as argument, together with an optional scheme specification. Common URI wrappers like &quot;&quot; and &lt;&gt;, as well as leading and trailing white space, are automatically removed from the $str argument before it is processed further.</p>

<p>The constructor determines the scheme, maps this to an appropriate URI subclass, constructs a new object of that class and returns it.</p>

<p>If the scheme isn&#39;t one of those that URI recognizes, you still get an URI object back that you can access the generic methods on. The <code>$uri-&gt;has_recognized_scheme</code> method can be used to test for this.</p>

<p>The $scheme argument is only used when $str is a relative URI. It can be either a simple string that denotes the scheme, a string containing an absolute URI reference, or an absolute <code>URI</code> object. If no $scheme is specified for a relative URI $str, then $str is simply treated as a generic URI (no scheme-specific methods available).</p>

<p>The set of characters available for building URI references is restricted (see <a href="./URI::Escape.html">URI::Escape</a>). Characters outside this set are automatically escaped by the URI constructor.</p>

</dd>
<dt id="$uri-=-URI-&gt;new_abs(-$str,-$base_uri-)"><a id="uri---URI--new_abs---str---base_uri"></a>$uri = URI-&gt;new_abs( $str, $base_uri )</dt>
<dd>

<p>Constructs a new absolute URI object. The $str argument can denote a relative or absolute URI. If relative, then it is absolutized using $base_uri as base. The $base_uri must be an absolute URI.</p>

</dd>
<dt id="$uri-=-URI::file-&gt;new(-$filename-)"><a id="uri---URI::file--new---filename"></a>$uri = URI::file-&gt;new( $filename )</dt>
<dd>

</dd>
<dt id="$uri-=-URI::file-&gt;new(-$filename,-$os-)"><a id="uri---URI::file--new---filename---os"></a>$uri = URI::file-&gt;new( $filename, $os )</dt>
<dd>

<p>Constructs a new <i>file</i> URI from a file name. See <a href="https://metacpan.org/pod/URI::file">URI::file</a>.</p>

</dd>
<dt id="$uri-=-URI::file-&gt;new_abs(-$filename-)"><a id="uri---URI::file--new_abs---filename"></a>$uri = URI::file-&gt;new_abs( $filename )</dt>
<dd>

</dd>
<dt id="$uri-=-URI::file-&gt;new_abs(-$filename,-$os-)"><a id="uri---URI::file--new_abs---filename---os"></a>$uri = URI::file-&gt;new_abs( $filename, $os )</dt>
<dd>

<p>Constructs a new absolute <i>file</i> URI from a file name. See <a href="https://metacpan.org/pod/URI::file">URI::file</a>.</p>

</dd>
<dt id="$uri-=-URI::file-&gt;cwd"><a id="uri---URI::file--cwd"></a>$uri = URI::file-&gt;cwd</dt>
<dd>

<p>Returns the current working directory as a <i>file</i> URI. See <a href="https://metacpan.org/pod/URI::file">URI::file</a>.</p>

</dd>
<dt id="$uri-&gt;clone"><a id="uri--clone"></a>$uri-&gt;clone</dt>
<dd>

<p>Returns a copy of the $uri.</p>

</dd>
</dl>

<h1 id="COMMON-METHODS"><a id="COMMON"></a>COMMON METHODS</h1>

<p>The methods described in this section are available for all <code>URI</code> objects.</p>

<p>Methods that give access to components of a URI always return the old value of the component. The value returned is <code>undef</code> if the component was not present. There is generally a difference between a component that is empty (represented as <code>&quot;&quot;</code>) and a component that is missing (represented as <code>undef</code>). If an accessor method is given an argument, it updates the corresponding component in addition to returning the old value of the component. Passing an undefined argument removes the component (if possible). The description of each accessor method indicates whether the component is passed as an escaped (percent-encoded) or an unescaped string. A component that can be further divided into sub-parts are usually passed escaped, as unescaping might change its semantics.</p>

<p>The common methods available for all URI are:</p>

<dl>

<dt id="$uri-&gt;scheme"><a id="uri--scheme"></a>$uri-&gt;scheme</dt>
<dd>

</dd>
<dt id="$uri-&gt;scheme(-$new_scheme-)"><a id="uri--scheme---new_scheme"></a>$uri-&gt;scheme( $new_scheme )</dt>
<dd>

<p>Sets and returns the scheme part of the $uri. If the $uri is relative, then $uri-&gt;scheme returns <code>undef</code>. If called with an argument, it updates the scheme of $uri, possibly changing the class of $uri, and returns the old scheme value. The method croaks if the new scheme name is illegal; a scheme name must begin with a letter and must consist of only US-ASCII letters, numbers, and a few special marks: &quot;.&quot;, &quot;+&quot;, &quot;-&quot;. This restriction effectively means that the scheme must be passed unescaped. Passing an undefined argument to the scheme method makes the URI relative (if possible).</p>

<p>Letter case does not matter for scheme names. The string returned by $uri-&gt;scheme is always lowercase. If you want the scheme just as it was written in the URI in its original case, you can use the $uri-&gt;_scheme method instead.</p>

</dd>
<dt id="$uri-&gt;has_recognized_scheme"><a id="uri--has_recognized_scheme"></a>$uri-&gt;has_recognized_scheme</dt>
<dd>

<p>Returns TRUE if the URI scheme is one that URI recognizes.</p>

<p>It will also be TRUE for relative URLs where a recognized scheme was provided to the constructor, even if <code>$uri-&gt;scheme</code> returns <code>undef</code> for these.</p>

</dd>
<dt id="$uri-&gt;opaque"><a id="uri--opaque"></a>$uri-&gt;opaque</dt>
<dd>

</dd>
<dt id="$uri-&gt;opaque(-$new_opaque-)"><a id="uri--opaque---new_opaque"></a>$uri-&gt;opaque( $new_opaque )</dt>
<dd>

<p>Sets and returns the scheme-specific part of the $uri (everything between the scheme and the fragment) as an escaped string.</p>

</dd>
<dt id="$uri-&gt;path"><a id="uri--path"></a>$uri-&gt;path</dt>
<dd>

</dd>
<dt id="$uri-&gt;path(-$new_path-)"><a id="uri--path---new_path"></a>$uri-&gt;path( $new_path )</dt>
<dd>

<p>Sets and returns the same value as $uri-&gt;opaque unless the URI supports the generic syntax for hierarchical namespaces. In that case the generic method is overridden to set and return the part of the URI between the <i>host name</i> and the <i>fragment</i>.</p>

</dd>
<dt id="$uri-&gt;fragment"><a id="uri--fragment"></a>$uri-&gt;fragment</dt>
<dd>

</dd>
<dt id="$uri-&gt;fragment(-$new_frag-)"><a id="uri--fragment---new_frag"></a>$uri-&gt;fragment( $new_frag )</dt>
<dd>

<p>Returns the fragment identifier of a URI reference as an escaped string.</p>

</dd>
<dt id="$uri-&gt;as_string"><a id="uri--as_string"></a>$uri-&gt;as_string</dt>
<dd>

<p>Returns a URI object to a plain ASCII string. URI objects are also converted to plain strings automatically by overloading. This means that $uri objects can be used as plain strings in most Perl constructs.</p>

</dd>
<dt id="$uri-&gt;as_iri"><a id="uri--as_iri"></a>$uri-&gt;as_iri</dt>
<dd>

<p>Returns a Unicode string representing the URI. Escaped UTF-8 sequences representing non-ASCII characters are turned into their corresponding Unicode code point.</p>

</dd>
<dt id="$uri-&gt;canonical"><a id="uri--canonical"></a>$uri-&gt;canonical</dt>
<dd>

<p>Returns a normalized version of the URI. The rules for normalization are scheme-dependent. They usually involve lowercasing the scheme and Internet host name components, removing the explicit port specification if it matches the default port, uppercasing all escape sequences, and unescaping octets that can be better represented as plain characters.</p>

<p>For efficiency reasons, if the $uri is already in normalized form, then a reference to it is returned instead of a copy.</p>

</dd>
<dt id="$uri-&gt;eq(-$other_uri-)"><a id="uri--eq---other_uri"></a>$uri-&gt;eq( $other_uri )</dt>
<dd>

</dd>
<dt id="URI::eq(-$first_uri,-$other_uri-)"><a id="URI"></a><a id="URI::eq---first_uri---other_uri"></a>URI::eq( $first_uri, $other_uri )</dt>
<dd>

<p>Tests whether two URI references are equal. URI references that normalize to the same string are considered equal. The method can also be used as a plain function which can also test two string arguments.</p>

<p>If you need to test whether two <code>URI</code> object references denote the same object, use the &#39;==&#39; operator.</p>

</dd>
<dt id="$uri-&gt;abs(-$base_uri-)"><a id="uri--abs---base_uri"></a>$uri-&gt;abs( $base_uri )</dt>
<dd>

<p>Returns an absolute URI reference. If $uri is already absolute, then a reference to it is simply returned. If the $uri is relative, then a new absolute URI is constructed by combining the $uri and the $base_uri, and returned.</p>

</dd>
<dt id="$uri-&gt;rel(-$base_uri-)"><a id="uri--rel---base_uri"></a>$uri-&gt;rel( $base_uri )</dt>
<dd>

<p>Returns a relative URI reference if it is possible to make one that denotes the same resource relative to $base_uri. If not, then $uri is simply returned.</p>

</dd>
<dt id="$uri-&gt;secure"><a id="uri--secure"></a>$uri-&gt;secure</dt>
<dd>

<p>Returns a TRUE value if the URI is considered to point to a resource on a secure channel, such as an SSL or TLS encrypted one.</p>

</dd>
</dl>

<h1 id="GENERIC-METHODS"><a id="GENERIC"></a>GENERIC METHODS</h1>

<p>The following methods are available to schemes that use the common/generic syntax for hierarchical namespaces. The descriptions of schemes below indicate which these are. Unrecognized schemes are assumed to support the generic syntax, and therefore the following methods:</p>

<dl>

<dt id="$uri-&gt;authority"><a id="uri--authority"></a>$uri-&gt;authority</dt>
<dd>

</dd>
<dt id="$uri-&gt;authority(-$new_authority-)"><a id="uri--authority---new_authority"></a>$uri-&gt;authority( $new_authority )</dt>
<dd>

<p>Sets and returns the escaped authority component of the $uri.</p>

</dd>
<dt id="$uri-&gt;path1"><a id="uri--path1"></a>$uri-&gt;path</dt>
<dd>

</dd>
<dt id="$uri-&gt;path(-$new_path-)1"><a id="uri--path---new_path1"></a>$uri-&gt;path( $new_path )</dt>
<dd>

<p>Sets and returns the escaped path component of the $uri (the part between the host name and the query or fragment). The path can never be undefined, but it can be the empty string.</p>

</dd>
<dt id="$uri-&gt;path_query"><a id="uri--path_query"></a>$uri-&gt;path_query</dt>
<dd>

</dd>
<dt id="$uri-&gt;path_query(-$new_path_query-)"><a id="uri--path_query---new_path_query"></a>$uri-&gt;path_query( $new_path_query )</dt>
<dd>

<p>Sets and returns the escaped path and query components as a single entity. The path and the query are separated by a &quot;?&quot; character, but the query can itself contain &quot;?&quot;.</p>

</dd>
<dt id="$uri-&gt;path_segments"><a id="uri--path_segments"></a>$uri-&gt;path_segments</dt>
<dd>

</dd>
<dt id="$uri-&gt;path_segments(-$segment,-...-)"><a id="uri--path_segments---segment"></a>$uri-&gt;path_segments( $segment, ... )</dt>
<dd>

<p>Sets and returns the path. In a scalar context, it returns the same value as $uri-&gt;path. In a list context, it returns the unescaped path segments that make up the path. Path segments that have parameters are returned as an anonymous array. The first element is the unescaped path segment proper; subsequent elements are escaped parameter strings. Such an anonymous array uses overloading so it can be treated as a string too, but this string does not include the parameters.</p>

<p>Note that absolute paths have the empty string as their first <i>path_segment</i>, i.e. the <i>path</i> <code>/foo/bar</code> have 3 <i>path_segments</i>; &quot;&quot;, &quot;foo&quot; and &quot;bar&quot;.</p>

</dd>
<dt id="$uri-&gt;query"><a id="uri--query"></a>$uri-&gt;query</dt>
<dd>

</dd>
<dt id="$uri-&gt;query(-$new_query-)"><a id="uri--query---new_query"></a>$uri-&gt;query( $new_query )</dt>
<dd>

<p>Sets and returns the escaped query component of the $uri.</p>

</dd>
<dt id="$uri-&gt;query_form"><a id="uri--query_form"></a>$uri-&gt;query_form</dt>
<dd>

</dd>
<dt id="$uri-&gt;query_form(-$key1-=&gt;-$val1,-$key2-=&gt;-$val2,-...-)"><a id="uri--query_form---key1----val1---key2----val2"></a>$uri-&gt;query_form( $key1 =&gt; $val1, $key2 =&gt; $val2, ... )</dt>
<dd>

</dd>
<dt id="$uri-&gt;query_form(-$key1-=&gt;-$val1,-$key2-=&gt;-$val2,-...,-$delim-)"><a id="uri--query_form---key1----val1---key2----val2--...---delim"></a>$uri-&gt;query_form( $key1 =&gt; $val1, $key2 =&gt; $val2, ..., $delim )</dt>
<dd>

</dd>
<dt id="$uri-&gt;query_form(-\@key_value_pairs-)"><a id="uri--query_form---key_value_pairs"></a>$uri-&gt;query_form( \@key_value_pairs )</dt>
<dd>

</dd>
<dt id="$uri-&gt;query_form(-\@key_value_pairs,-$delim-)"><a id="uri--query_form---key_value_pairs---delim"></a>$uri-&gt;query_form( \@key_value_pairs, $delim )</dt>
<dd>

</dd>
<dt id="$uri-&gt;query_form(-\%hash-)"><a id="uri--query_form---hash"></a>$uri-&gt;query_form( \%hash )</dt>
<dd>

</dd>
<dt id="$uri-&gt;query_form(-\%hash,-$delim-)"><a id="uri--query_form---hash---delim"></a>$uri-&gt;query_form( \%hash, $delim )</dt>
<dd>

<p>Sets and returns query components that use the <i>application/x-www-form-urlencoded</i> format. Key/value pairs are separated by &quot;&amp;&quot;, and the key is separated from the value by a &quot;=&quot; character.</p>

<p>The form can be set either by passing separate key/value pairs, or via an array or hash reference. Passing an empty array or an empty hash removes the query component, whereas passing no arguments at all leaves the component unchanged. The order of keys is undefined if a hash reference is passed. The old value is always returned as a list of separate key/value pairs. Assigning this list to a hash is unwise as the keys returned might repeat.</p>

<p>The values passed when setting the form can be plain strings or references to arrays of strings. Passing an array of values has the same effect as passing the key repeatedly with one value at a time. All the following statements have the same effect:</p>

<pre><code>    $uri-&gt;query_form(foo =&gt; 1, foo =&gt; 2);
    $uri-&gt;query_form(foo =&gt; [1, 2]);
    $uri-&gt;query_form([ foo =&gt; 1, foo =&gt; 2 ]);
    $uri-&gt;query_form([ foo =&gt; [1, 2] ]);
    $uri-&gt;query_form({ foo =&gt; [1, 2] });</code></pre>

<p>The $delim parameter can be passed as &quot;;&quot; to force the key/value pairs to be delimited by &quot;;&quot; instead of &quot;&amp;&quot; in the query string. This practice is often recommended for URLs embedded in HTML or XML documents as this avoids the trouble of escaping the &quot;&amp;&quot; character. You might also set the $URI::DEFAULT_QUERY_FORM_DELIMITER variable to &quot;;&quot; for the same global effect.</p>

</dd>
<dt id="@keys-=-$u-&gt;query_param"><a id="keys----u--query_param"></a>@keys = $u-&gt;query_param</dt>
<dd>

</dd>
<dt id="@values-=-$u-&gt;query_param(-$key-)"><a id="values----u--query_param---key"></a>@values = $u-&gt;query_param( $key )</dt>
<dd>

</dd>
<dt id="$first_value-=-$u-&gt;query_param(-$key-)"><a id="first_value----u--query_param---key"></a>$first_value = $u-&gt;query_param( $key )</dt>
<dd>

</dd>
<dt id="$u-&gt;query_param(-$key,-$value,...-)"><a id="u--query_param---key---value"></a>$u-&gt;query_param( $key, $value,... )</dt>
<dd>

<p>If $u-&gt;query_param is called with no arguments, it returns all the distinct parameter keys of the URI. In a scalar context it returns the number of distinct keys.</p>

<p>When a $key argument is given, the method returns the parameter values with the given key. In a scalar context, only the first parameter value is returned.</p>

<p>If additional arguments are given, they are used to update successive parameters with the given key. If any of the values provided are array references, then the array is dereferenced to get the actual values.</p>

<p>Please note that you can supply multiple values to this method, but you cannot supply multiple keys.</p>

<p>Do this:</p>

<pre><code>    $uri-&gt;query_param( widget_id =&gt; 1, 5, 9 );</code></pre>

<p>Do NOT do this:</p>

<pre><code>    $uri-&gt;query_param( widget_id =&gt; 1, frobnicator_id =&gt; 99 );</code></pre>

</dd>
<dt id="$u-&gt;query_param_append($key,-$value,...)"><a id="u--query_param_append-key---value"></a>$u-&gt;query_param_append($key, $value,...)</dt>
<dd>

<p>Adds new parameters with the given key without touching any old parameters with the same key. It can be explained as a more efficient version of:</p>

<pre><code>   $u-&gt;query_param($key,
                   $u-&gt;query_param($key),
                   $value,...);</code></pre>

<p>One difference is that this expression would return the old values of $key, whereas the query_param_append() method does not.</p>

</dd>
<dt id="@values-=-$u-&gt;query_param_delete($key)"><a id="values----u--query_param_delete-key"></a>@values = $u-&gt;query_param_delete($key)</dt>
<dd>

</dd>
<dt id="$first_value-=-$u-&gt;query_param_delete($key)"><a id="first_value----u--query_param_delete-key"></a>$first_value = $u-&gt;query_param_delete($key)</dt>
<dd>

<p>Deletes all key/value pairs with the given key. The old values are returned. In a scalar context, only the first value is returned.</p>

<p>Using the query_param_delete() method is slightly more efficient than the equivalent:</p>

<pre><code>   $u-&gt;query_param($key, []);</code></pre>

</dd>
<dt id="$hashref-=-$u-&gt;query_form_hash"><a id="hashref----u--query_form_hash"></a>$hashref = $u-&gt;query_form_hash</dt>
<dd>

</dd>
<dt id="$u-&gt;query_form_hash(-\%new_form-)"><a id="u--query_form_hash---new_form"></a>$u-&gt;query_form_hash( \%new_form )</dt>
<dd>

<p>Returns a reference to a hash that represents the query form&#39;s key/value pairs. If a key occurs multiple times, then the hash value becomes an array reference.</p>

<p>Note that sequence information is lost. This means that:</p>

<pre><code>   $u-&gt;query_form_hash($u-&gt;query_form_hash);</code></pre>

<p>is not necessarily a no-op, as it may reorder the key/value pairs. The values returned by the query_param() method should stay the same though.</p>

</dd>
<dt id="$uri-&gt;query_keywords"><a id="uri--query_keywords"></a>$uri-&gt;query_keywords</dt>
<dd>

</dd>
<dt id="$uri-&gt;query_keywords(-$keywords,-...-)"><a id="uri--query_keywords---keywords"></a>$uri-&gt;query_keywords( $keywords, ... )</dt>
<dd>

</dd>
<dt id="$uri-&gt;query_keywords(-\@keywords-)"><a id="uri--query_keywords---keywords1"></a>$uri-&gt;query_keywords( \@keywords )</dt>
<dd>

<p>Sets and returns query components that use the keywords separated by &quot;+&quot; format.</p>

<p>The keywords can be set either by passing separate keywords directly or by passing a reference to an array of keywords. Passing an empty array removes the query component, whereas passing no arguments at all leaves the component unchanged. The old value is always returned as a list of separate words.</p>

</dd>
</dl>

<h1 id="SERVER-METHODS"><a id="SERVER"></a>SERVER METHODS</h1>

<p>For schemes where the <i>authority</i> component denotes an Internet host, the following methods are available in addition to the generic methods.</p>

<dl>

<dt id="$uri-&gt;userinfo"><a id="uri--userinfo"></a>$uri-&gt;userinfo</dt>
<dd>

</dd>
<dt id="$uri-&gt;userinfo(-$new_userinfo-)"><a id="uri--userinfo---new_userinfo"></a>$uri-&gt;userinfo( $new_userinfo )</dt>
<dd>

<p>Sets and returns the escaped userinfo part of the authority component.</p>

<p>For some schemes this is a user name and a password separated by a colon. This practice is not recommended. Embedding passwords in clear text (such as URI) has proven to be a security risk in almost every case where it has been used.</p>

</dd>
<dt id="$uri-&gt;host"><a id="uri--host"></a>$uri-&gt;host</dt>
<dd>

</dd>
<dt id="$uri-&gt;host(-$new_host-)"><a id="uri--host---new_host"></a>$uri-&gt;host( $new_host )</dt>
<dd>

<p>Sets and returns the unescaped hostname.</p>

<p>If the <code>$new_host</code> string ends with a colon and a number, then this number also sets the port.</p>

<p>For IPv6 addresses the brackets around the raw address is removed in the return value from $uri-&gt;host. When setting the host attribute to an IPv6 address you can use a raw address or one enclosed in brackets. The address needs to be enclosed in brackets if you want to pass in a new port value as well.</p>

<pre><code>  my $uri = URI-&gt;new(&quot;http://www.\xC3\xBCri-sample/foo/bar.html&quot;);
  print $u-&gt;host; # www.xn--ri-sample-fra0f</code></pre>

</dd>
<dt id="$uri-&gt;ihost"><a id="uri--ihost"></a>$uri-&gt;ihost</dt>
<dd>

<p>Returns the host in Unicode form. Any IDNA A-labels (encoded unicode chars with <i>xn--</i> prefix) are turned into U-labels (unicode chars).</p>

<pre><code>  my $uri = URI-&gt;new(&quot;http://www.\xC3\xBCri-sample/foo/bar.html&quot;);
  print $u-&gt;ihost; # www.\xC3\xBCri-sample</code></pre>

</dd>
<dt id="$uri-&gt;port"><a id="uri--port"></a>$uri-&gt;port</dt>
<dd>

</dd>
<dt id="$uri-&gt;port(-$new_port-)"><a id="uri--port---new_port"></a>$uri-&gt;port( $new_port )</dt>
<dd>

<p>Sets and returns the port. The port is a simple integer that should be greater than 0.</p>

<p>If a port is not specified explicitly in the URI, then the URI scheme&#39;s default port is returned. If you don&#39;t want the default port substituted, then you can use the $uri-&gt;_port method instead.</p>

</dd>
<dt id="$uri-&gt;host_port"><a id="uri--host_port"></a>$uri-&gt;host_port</dt>
<dd>

</dd>
<dt id="$uri-&gt;host_port(-$new_host_port-)"><a id="uri--host_port---new_host_port"></a>$uri-&gt;host_port( $new_host_port )</dt>
<dd>

<p>Sets and returns the host and port as a single unit. The returned value includes a port, even if it matches the default port. The host part and the port part are separated by a colon: &quot;:&quot;.</p>

<p>For IPv6 addresses the bracketing is preserved; thus URI-&gt;new(&quot;http://[::1]/&quot;)-&gt;host_port returns &quot;[::1]:80&quot;. Contrast this with $uri-&gt;host which will remove the brackets.</p>

</dd>
<dt id="$uri-&gt;default_port"><a id="uri--default_port"></a>$uri-&gt;default_port</dt>
<dd>

<p>Returns the default port of the URI scheme to which $uri belongs. For <i>http</i> this is the number 80, for <i>ftp</i> this is the number 21, etc. The default port for a scheme can not be changed.</p>

</dd>
</dl>

<h1 id="SCHEME-SPECIFIC-SUPPORT"><a id="SCHEME"></a>SCHEME-SPECIFIC SUPPORT</h1>

<p>Scheme-specific support is provided for the following URI schemes. For <code>URI</code> objects that do not belong to one of these, you can only use the common and generic methods.</p>

<dl>

<dt id="data:"><a id="data"></a><b>data</b>:</dt>
<dd>

<p>The <i>data</i> URI scheme is specified in RFC 2397. It allows inclusion of small data items as &quot;immediate&quot; data, as if it had been included externally.</p>

<p><code>URI</code> objects belonging to the data scheme support the common methods and two new methods to access their scheme-specific components: $uri-&gt;media_type and $uri-&gt;data. See <a href="https://metacpan.org/pod/URI::data">URI::data</a> for details.</p>

</dd>
<dt id="file:"><a id="file"></a><b>file</b>:</dt>
<dd>

<p>An old specification of the <i>file</i> URI scheme is found in RFC 1738. A new RFC 2396 based specification in not available yet, but file URI references are in common use.</p>

<p><code>URI</code> objects belonging to the file scheme support the common and generic methods. In addition, they provide two methods for mapping file URIs back to local file names; $uri-&gt;file and $uri-&gt;dir. See <a href="https://metacpan.org/pod/URI::file">URI::file</a> for details.</p>

</dd>
<dt id="ftp:"><a id="ftp"></a><b>ftp</b>:</dt>
<dd>

<p>An old specification of the <i>ftp</i> URI scheme is found in RFC 1738. A new RFC 2396 based specification in not available yet, but ftp URI references are in common use.</p>

<p><code>URI</code> objects belonging to the ftp scheme support the common, generic and server methods. In addition, they provide two methods for accessing the userinfo sub-components: $uri-&gt;user and $uri-&gt;password.</p>

</dd>
<dt id="gopher:"><a id="gopher"></a><b>gopher</b>:</dt>
<dd>

<p>The <i>gopher</i> URI scheme is specified in &lt;draft-murali-url-gopher-1996-12-04&gt; and will hopefully be available as a RFC 2396 based specification.</p>

<p><code>URI</code> objects belonging to the gopher scheme support the common, generic and server methods. In addition, they support some methods for accessing gopher-specific path components: $uri-&gt;gopher_type, $uri-&gt;selector, $uri-&gt;search, $uri-&gt;string.</p>

</dd>
<dt id="http:"><a id="http"></a><b>http</b>:</dt>
<dd>

<p>The <i>http</i> URI scheme is specified in RFC 2616. The scheme is used to reference resources hosted by HTTP servers.</p>

<p><code>URI</code> objects belonging to the http scheme support the common, generic and server methods.</p>

</dd>
<dt id="https:"><a id="https"></a><b>https</b>:</dt>
<dd>

<p>The <i>https</i> URI scheme is a Netscape invention which is commonly implemented. The scheme is used to reference HTTP servers through SSL connections. Its syntax is the same as http, but the default port is different.</p>

</dd>
<dt id="geo:"><a id="geo"></a><b>geo</b>:</dt>
<dd>

<p>The <i>geo</i> URI scheme is specified in <a href="http://tools.ietf.org/html/rfc5870">RFC 5870</a>. The scheme is used to reference physical location in a two- or three-dimensional coordinate reference system in a compact, simple, human-readable, and protocol-independent way.</p>

<p><code>URI</code> objects belonging to the geo scheme support the common methods.</p>

</dd>
<dt id="icap:"><a id="icap"></a><b>icap</b>:</dt>
<dd>

<p>The <i>icap</i> URI scheme is specified in <a href="http://tools.ietf.org/html/rfc3507">RFC 3507</a>. The scheme is used to reference resources hosted by ICAP servers.</p>

<p><code>URI</code> objects belonging to the icap scheme support the common, generic and server methods.</p>

</dd>
<dt id="icaps:"><a id="icaps"></a><b>icaps</b>:</dt>
<dd>

<p>The <i>icaps</i> URI scheme is specified in <a href="http://tools.ietf.org/html/rfc3507">RFC 3507</a> as well. The scheme is used to reference ICAP servers through SSL connections. Its syntax is the same as icap, including the same default port.</p>

</dd>
<dt id="ldap:"><a id="ldap"></a><b>ldap</b>:</dt>
<dd>

<p>The <i>ldap</i> URI scheme is specified in RFC 2255. LDAP is the Lightweight Directory Access Protocol. An ldap URI describes an LDAP search operation to perform to retrieve information from an LDAP directory.</p>

<p><code>URI</code> objects belonging to the ldap scheme support the common, generic and server methods as well as ldap-specific methods: $uri-&gt;dn, $uri-&gt;attributes, $uri-&gt;scope, $uri-&gt;filter, $uri-&gt;extensions. See <a href="https://metacpan.org/pod/URI::ldap">URI::ldap</a> for details.</p>

</dd>
<dt id="ldapi:"><a id="ldapi"></a><b>ldapi</b>:</dt>
<dd>

<p>Like the <i>ldap</i> URI scheme, but uses a UNIX domain socket. The server methods are not supported, and the local socket path is available as $uri-&gt;un_path. The <i>ldapi</i> scheme is used by the OpenLDAP package. There is no real specification for it, but it is mentioned in various OpenLDAP manual pages.</p>

</dd>
<dt id="ldaps:"><a id="ldaps"></a><b>ldaps</b>:</dt>
<dd>

<p>Like the <i>ldap</i> URI scheme, but uses an SSL connection. This scheme is deprecated, as the preferred way is to use the <i>start_tls</i> mechanism.</p>

</dd>
<dt id="mailto:"><a id="mailto"></a><b>mailto</b>:</dt>
<dd>

<p>The <i>mailto</i> URI scheme is specified in RFC 2368. The scheme was originally used to designate the Internet mailing address of an individual or service. It has (in RFC 2368) been extended to allow setting of other mail header fields and the message body.</p>

<p><code>URI</code> objects belonging to the mailto scheme support the common methods and the generic query methods. In addition, they support the following mailto-specific methods: $uri-&gt;to, $uri-&gt;headers.</p>

<p>Note that the &quot;foo@example.com&quot; part of a mailto is <i>not</i> the <code>userinfo</code> and <code>host</code> but instead the <code>path</code>. This allows a mailto URI to contain multiple comma separated email addresses.</p>

</dd>
<dt id="mms:"><a id="mms"></a><b>mms</b>:</dt>
<dd>

<p>The <i>mms</i> URL specification can be found at <a href="http://sdp.ppona.com/">http://sdp.ppona.com/</a>. <code>URI</code> objects belonging to the mms scheme support the common, generic, and server methods, with the exception of userinfo and query-related sub-components.</p>

</dd>
<dt id="news:"><a id="news"></a><b>news</b>:</dt>
<dd>

<p>The <i>news</i>, <i>nntp</i> and <i>snews</i> URI schemes are specified in &lt;draft-gilman-news-url-01&gt; and will hopefully be available as an RFC 2396 based specification soon. (Update: as of April 2010, they are in <a href="https://tools.ietf.org/html/rfc5538">RFC 5538</a>.</p>

<p><code>URI</code> objects belonging to the news scheme support the common, generic and server methods. In addition, they provide some methods to access the path: $uri-&gt;group and $uri-&gt;message.</p>

</dd>
<dt id="nntp:"><a id="nntp"></a><b>nntp</b>:</dt>
<dd>

<p>See <i>news</i> scheme.</p>

</dd>
<dt id="nntps:"><a id="nntps"></a><b>nntps</b>:</dt>
<dd>

<p>See <i>news</i> scheme and <a href="https://tools.ietf.org/html/rfc5538">RFC 5538</a>.</p>

</dd>
<dt id="pop:"><a id="pop"></a><b>pop</b>:</dt>
<dd>

<p>The <i>pop</i> URI scheme is specified in RFC 2384. The scheme is used to reference a POP3 mailbox.</p>

<p><code>URI</code> objects belonging to the pop scheme support the common, generic and server methods. In addition, they provide two methods to access the userinfo components: $uri-&gt;user and $uri-&gt;auth</p>

</dd>
<dt id="rlogin:"><a id="rlogin"></a><b>rlogin</b>:</dt>
<dd>

<p>An old specification of the <i>rlogin</i> URI scheme is found in RFC 1738. <code>URI</code> objects belonging to the rlogin scheme support the common, generic and server methods.</p>

</dd>
<dt id="rtsp:"><a id="rtsp"></a><b>rtsp</b>:</dt>
<dd>

<p>The <i>rtsp</i> URL specification can be found in section 3.2 of RFC 2326. <code>URI</code> objects belonging to the rtsp scheme support the common, generic, and server methods, with the exception of userinfo and query-related sub-components.</p>

</dd>
<dt id="rtspu:"><a id="rtspu"></a><b>rtspu</b>:</dt>
<dd>

<p>The <i>rtspu</i> URI scheme is used to talk to RTSP servers over UDP instead of TCP. The syntax is the same as rtsp.</p>

</dd>
<dt id="rsync:"><a id="rsync"></a><b>rsync</b>:</dt>
<dd>

<p>Information about rsync is available from <a href="http://rsync.samba.org/">http://rsync.samba.org/</a>. <code>URI</code> objects belonging to the rsync scheme support the common, generic and server methods. In addition, they provide methods to access the userinfo sub-components: $uri-&gt;user and $uri-&gt;password.</p>

</dd>
<dt id="sip:"><a id="sip"></a><b>sip</b>:</dt>
<dd>

<p>The <i>sip</i> URI specification is described in sections 19.1 and 25 of RFC 3261. <code>URI</code> objects belonging to the sip scheme support the common, generic, and server methods with the exception of path related sub-components. In addition, they provide two methods to get and set <i>sip</i> parameters: $uri-&gt;params_form and $uri-&gt;params.</p>

</dd>
<dt id="sips:"><a id="sips"></a><b>sips</b>:</dt>
<dd>

<p>See <i>sip</i> scheme. Its syntax is the same as sip, but the default port is different.</p>

</dd>
<dt id="snews:"><a id="snews"></a><b>snews</b>:</dt>
<dd>

<p>See <i>news</i> scheme. Its syntax is the same as news, but the default port is different.</p>

</dd>
<dt id="telnet:"><a id="telnet"></a><b>telnet</b>:</dt>
<dd>

<p>An old specification of the <i>telnet</i> URI scheme is found in RFC 1738. <code>URI</code> objects belonging to the telnet scheme support the common, generic and server methods.</p>

</dd>
<dt id="tn3270:"><a id="tn3270"></a><b>tn3270</b>:</dt>
<dd>

<p>These URIs are used like <i>telnet</i> URIs but for connections to IBM mainframes. <code>URI</code> objects belonging to the tn3270 scheme support the common, generic and server methods.</p>

</dd>
<dt id="ssh:"><a id="ssh"></a><b>ssh</b>:</dt>
<dd>

<p>Information about ssh is available at <a href="http://www.openssh.com/">http://www.openssh.com/</a>. <code>URI</code> objects belonging to the ssh scheme support the common, generic and server methods. In addition, they provide methods to access the userinfo sub-components: $uri-&gt;user and $uri-&gt;password.</p>

</dd>
<dt id="sftp:"><a id="sftp"></a><b>sftp</b>:</dt>
<dd>

<p><code>URI</code> objects belonging to the sftp scheme support the common, generic and server methods. In addition, they provide methods to access the userinfo sub-components: $uri-&gt;user and $uri-&gt;password.</p>

</dd>
<dt id="urn:"><a id="urn"></a><b>urn</b>:</dt>
<dd>

<p>The syntax of Uniform Resource Names is specified in RFC 2141. <code>URI</code> objects belonging to the urn scheme provide the common methods, and also the methods $uri-&gt;nid and $uri-&gt;nss, which return the Namespace Identifier and the Namespace-Specific String respectively.</p>

<p>The Namespace Identifier basically works like the Scheme identifier of URIs, and further divides the URN namespace. Namespace Identifier assignments are maintained at <a href="http://www.iana.org/assignments/urn-namespaces">http://www.iana.org/assignments/urn-namespaces</a>.</p>

<p>Letter case is not significant for the Namespace Identifier. It is always returned in lower case by the $uri-&gt;nid method. The $uri-&gt;_nid method can be used if you want it in its original case.</p>

</dd>
<dt id="urn:isbn:"><a id="urn1"></a><a id="urn:isbn"></a><b>urn</b>:<b>isbn</b>:</dt>
<dd>

<p>The <code>urn:isbn:</code> namespace contains International Standard Book Numbers (ISBNs) and is described in RFC 3187. A <code>URI</code> object belonging to this namespace has the following extra methods (if the Business::ISBN module is available): $uri-&gt;isbn, $uri-&gt;isbn_publisher_code, $uri-&gt;isbn_group_code (formerly isbn_country_code, which is still supported by issues a deprecation warning), $uri-&gt;isbn_as_ean.</p>

</dd>
<dt id="urn:oid:"><a id="urn2"></a><a id="urn:oid"></a><b>urn</b>:<b>oid</b>:</dt>
<dd>

<p>The <code>urn:oid:</code> namespace contains Object Identifiers (OIDs) and is described in RFC 3061. An object identifier consists of sequences of digits separated by dots. A <code>URI</code> object belonging to this namespace has an additional method called $uri-&gt;oid that can be used to get/set the oid value. In a list context, oid numbers are returned as separate elements.</p>

</dd>
</dl>

<h1 id="CONFIGURATION-VARIABLES"><a id="CONFIGURATION"></a>CONFIGURATION VARIABLES</h1>

<p>The following configuration variables influence how the class and its methods behave:</p>

<dl>

<dt id="$URI::ABS_ALLOW_RELATIVE_SCHEME"><a id="URI::ABS_ALLOW_RELATIVE_SCHEME"></a>$URI::ABS_ALLOW_RELATIVE_SCHEME</dt>
<dd>

<p>Some older parsers used to allow the scheme name to be present in the relative URL if it was the same as the base URL scheme. RFC 2396 says that this should be avoided, but you can enable this old behaviour by setting the $URI::ABS_ALLOW_RELATIVE_SCHEME variable to a TRUE value. The difference is demonstrated by the following examples:</p>

<pre><code>  URI-&gt;new(&quot;http:foo&quot;)-&gt;abs(&quot;http://host/a/b&quot;)
      ==&gt;  &quot;http:foo&quot;

  local $URI::ABS_ALLOW_RELATIVE_SCHEME = 1;
  URI-&gt;new(&quot;http:foo&quot;)-&gt;abs(&quot;http://host/a/b&quot;)
      ==&gt;  &quot;http:/host/a/foo&quot;</code></pre>

</dd>
<dt id="$URI::ABS_REMOTE_LEADING_DOTS"><a id="URI::ABS_REMOTE_LEADING_DOTS"></a>$URI::ABS_REMOTE_LEADING_DOTS</dt>
<dd>

<p>You can also have the abs() method ignore excess &quot;..&quot; segments in the relative URI by setting $URI::ABS_REMOTE_LEADING_DOTS to a TRUE value. The difference is demonstrated by the following examples:</p>

<pre><code>  URI-&gt;new(&quot;../../../foo&quot;)-&gt;abs(&quot;http://host/a/b&quot;)
      ==&gt; &quot;http://host/../../foo&quot;

  local $URI::ABS_REMOTE_LEADING_DOTS = 1;
  URI-&gt;new(&quot;../../../foo&quot;)-&gt;abs(&quot;http://host/a/b&quot;)
      ==&gt; &quot;http://host/foo&quot;</code></pre>

</dd>
<dt id="$URI::DEFAULT_QUERY_FORM_DELIMITER"><a id="URI::DEFAULT_QUERY_FORM_DELIMITER"></a>$URI::DEFAULT_QUERY_FORM_DELIMITER</dt>
<dd>

<p>This value can be set to &quot;;&quot; to have the query form <code>key=value</code> pairs delimited by &quot;;&quot; instead of &quot;&amp;&quot; which is the default.</p>

</dd>
</dl>

<h1 id="ENVIRONMENT-VARIABLES"><a id="ENVIRONMENT"></a>ENVIRONMENT VARIABLES</h1>

<dl>

<dt id="URI_HAS_RESERVED_SQUARE_BRACKETS">URI_HAS_RESERVED_SQUARE_BRACKETS</dt>
<dd>

<p>Before version 5.11, URI treated square brackets as reserved characters throughout the whole URI string. However, these brackets are reserved only within the authority/host part of the URI and nowhere else (RFC 3986).</p>

<p>Starting with version 5.11, URI takes this distinction into account. Setting the environment variable <code>URI_HAS_RESERVED_SQUARE_BRACKETS</code> (programmatically or via the shell), restores the old behavior.</p>

<pre><code>  #-- restore 5.10 behavior programmatically
  BEGIN {
    $ENV{URI_HAS_RESERVED_SQUARE_BRACKETS} = 1;
  }
  use URI ();</code></pre>

<p><i>Note</i>: This environment variable is just used during initialization and has to be set <i>before</i> module URI is used/required. Changing it at run time has no effect.</p>

<p>Its value can be checked programmatically by accessing the constant <code>URI::HAS_RESERVED_SQUARE_BRACKETS</code>.</p>

</dd>
</dl>

<h1 id="BUGS">BUGS</h1>

<p>There are some things that are not quite right:</p>

<ul>

<li><p>Using regexp variables like $1 directly as arguments to the URI accessor methods does not work too well with current perl implementations. I would argue that this is actually a bug in perl. The workaround is to quote them. Example:</p>

<pre><code>   /(...)/ || die;
   $u-&gt;query(&quot;$1&quot;);</code></pre>

</li>
<li><p>The escaping (percent encoding) of chars in the 128 .. 255 range passed to the URI constructor or when setting URI parts using the accessor methods depend on the state of the internal UTF8 flag (see utf8::is_utf8) of the string passed. If the UTF8 flag is set the UTF-8 encoded version of the character is percent encoded. If the UTF8 flag isn&#39;t set the Latin-1 version (byte) of the character is percent encoded. This basically exposes the internal encoding of Perl strings.</p>

</li>
</ul>

<h1 id="PARSING-URIs-WITH-REGEXP"><a id="PARSING"></a>PARSING URIs WITH REGEXP</h1>

<p>As an alternative to this module, the following (official) regular expression can be used to decode a URI:</p>

<pre><code>  my($scheme, $authority, $path, $query, $fragment) =
  $uri =~ m|(?:([^:/?#]+):)?(?://([^/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?|;</code></pre>

<p>The <code>URI::Split</code> module provides the function uri_split() as a readable alternative.</p>

<h1 id="SEE-ALSO"><a id="SEE"></a>SEE ALSO</h1>

<p><a href="https://metacpan.org/pod/URI::file">URI::file</a>, <a href="https://metacpan.org/pod/URI::WithBase">URI::WithBase</a>, <a href="./URI::Escape.html">URI::Escape</a>, <a href="https://metacpan.org/pod/URI::Split">URI::Split</a>, <a href="https://metacpan.org/pod/URI::Heuristic">URI::Heuristic</a></p>

<p>RFC 2396: &quot;Uniform Resource Identifiers (URI): Generic Syntax&quot;, Berners-Lee, Fielding, Masinter, August 1998.</p>

<p><a href="http://www.iana.org/assignments/uri-schemes">http://www.iana.org/assignments/uri-schemes</a></p>

<p><a href="http://www.iana.org/assignments/urn-namespaces">http://www.iana.org/assignments/urn-namespaces</a></p>

<p><a href="http://www.w3.org/Addressing/">http://www.w3.org/Addressing/</a></p>

<h1 id="COPYRIGHT">COPYRIGHT</h1>

<p>Copyright 1995-2009 Gisle Aas.</p>

<p>Copyright 1995 Martijn Koster.</p>

<p>This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.</p>

<h1 id="AUTHORS-/-ACKNOWLEDGMENTS"><a id="AUTHORS"></a><a id="AUTHORS---ACKNOWLEDGMENTS"></a>AUTHORS / ACKNOWLEDGMENTS</h1>

<p>This module is based on the <code>URI::URL</code> module, which in turn was (distantly) based on the <code>wwwurl.pl</code> code in the libwww-perl for perl4 developed by Roy Fielding, as part of the Arcadia project at the University of California, Irvine, with contributions from Brooks Cutter.</p>

<p><code>URI::URL</code> was developed by Gisle Aas, Tim Bunce, Roy Fielding and Martijn Koster with input from other people on the libwww-perl mailing list.</p>

<p><code>URI</code> and related subclasses was developed by Gisle Aas.</p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install URI, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm URI</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install URI</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="URI.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
